package com.itheima.factory;

import org.aopalliance.aop.AspectException;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

//@Component
public class MyFactory {

    @Bean("aspectException")
    public AspectException getAspectException(){
        AspectException ae=new AspectException("信息");

        return  ae;
    }
}
